/*
 * TransiCast / Qt
 * (c) 2012 Joachim Pfeiffer
 * Please refer to http://code.google.com/p/transitacst for more information
 */
#ifndef BUSYNOTIFY_HPP
#define BUSYNOTIFY_HPP

#include <QObject>
#include <QTimer>
#include <QApplication>
#include <QMainWindow>
#include <QTreeView>
#include <QLabel>

class BusyNotify : public QObject
{
    Q_OBJECT

public:
    explicit BusyNotify(QMainWindow *parent = 0, QTreeView *parentView = 0, QApplication *parentApp = 0);
    void init();
    void showBusyCursor();
    void hideBusyCursor();

private:
    QMainWindow *modelParent;
    QTreeView *view;
    QApplication *app;

    bool waiting;
    int screenWidth, screenHeight;

signals:

public slots:
     void TimerTimeout();
};

#endif // BUSYNOTIFY_HPP
